<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .container {
      width: 200px;
      height: 200px;
      border: 1px solid red;
      margin: 0 auto;
      border-radius: 100px;
      text-align: center;
      line-height: 200px;
    }
  </style>
</head>
<body>
  <div class="container">123</div>

  <script>
    const container = document.querySelector('.container')
    let deg = 0
    setInterval(() => {
      deg += 30
      container.style.transform =  `rotate(${deg}deg)`
    }, 500)
  </script>
</body>
</html>